package org.lanyu.springainovel.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;

import java.time.LocalDateTime;

@Schema(name = "会话记录")
@Data
public class ChatSessionHistory {
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;
    @Schema(description = "会话ID")
    private String sessionId;
    @Schema(description = "用户ID")
    private Long userId;
    @Schema(description = "会话标题")
    private String title;
    @Schema(description = "状态")
    private Integer status;
    @Schema(description = "会话摘要")
    private String summary;
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    public ChatSessionHistory() { super(); }
}
